﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace HengTong.DataAccess.Migrations
{
    /// <inheritdoc />
    public partial class 班组表增加工作时长和天数 : Migration
    {
        /// <inheritdoc />
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<decimal>(
                name: "AttendanceDays",
                table: "SysAttendanceShiftGroup",
                type: "decimal(4,2)",
                nullable: false,
                defaultValue: 0m);

            migrationBuilder.AddColumn<decimal>(
                name: "Order",
                table: "SysAttendanceShiftGroup",
                type: "decimal(4,2)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "StandardWorkMinutes",
                table: "SysAttendanceShiftGroup",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AddColumn<decimal>(
                name: "Order",
                table: "SysAttendanceShift",
                type: "decimal(4,2)",
                nullable: true);
        }

        /// <inheritdoc />
        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "AttendanceDays",
                table: "SysAttendanceShiftGroup");

            migrationBuilder.DropColumn(
                name: "Order",
                table: "SysAttendanceShiftGroup");

            migrationBuilder.DropColumn(
                name: "StandardWorkMinutes",
                table: "SysAttendanceShiftGroup");

            migrationBuilder.DropColumn(
                name: "Order",
                table: "SysAttendanceShift");
        }
    }
}
